<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<h:head>
	
	<f:loadBundle basename="messages" var="m" />
	<title><ui:insert name="titulo">
			<h:outputText value="#{m.template_titulo_sistema}" />
		</ui:insert></title>

	<h:outputStylesheet library="css" name="seguridad.css" />
	<!-- <h:outputStylesheet library="css" name="Default.css" /> -->
	
	<h:outputStylesheet library="css" name="legal.css" />

	
</h:head>
<h:body>
	<div id="container">

		<div id="header">
			
			<div id="logo">
				<h:graphicImage library="images" name="logo.gif"></h:graphicImage>
			</div>


			<div class="clear"></div>

			<div id="usuario">
								
				<table border="0" cellpadding="2" cellspacing="0" style="width: 100%" >
					<tr>
						<td align="left" valign="middle" width="35%">
							<h:outputText id="lblUsuario1" value="#{m.template_lbl_usuario} " />
							<h:outputText style="color:black" id="lblUsuario2" value="#{USUARIO_SESION}" />
						</td>
						<td align="left" valign="middle" width="35%">
							<h:outputText id="lblFecha1" value="#{m.template_lbl_fecha} " />
							<h:outputText style="color:black" id="lblFecha2" value="#{usuarioController.fecha}" /> 							
						</td>
						<td align="right" valign="middle" width="35%">							
							<p:commandLink 
								action="#{usuarioController.cerrarSesion}"
								onclick="window.location='#{facesContext.externalContext.requestContextPath}';" 
								value="#{m.template_lbl_cerrar}"/>
						</td>
					</tr>					
				</table>
			
			</div>
			
		</div>

		<div id="menu">
			<ui:insert name="menu">

				<ui:include src="menu.xhtml" />

			</ui:insert>

		</div>

		<div id="contenido">
			<ui:insert name="cuerpo">

			</ui:insert>
			
			
		</div>

		<div id="footer">
			<ui:insert name="pie">
				<ui:include src="pie.xhtml" />
			</ui:insert>

		</div>

	</div>


</h:body>

</html>
